<template>
  <div class="index">
    <router-view/>
    <van-tabbar v-model="active">
      <van-tabbar-item  @click="$router.push('/index/home')" icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item  @click="$router.push('/index/home1')"  icon="search">爆爆团</van-tabbar-item>
      <van-tabbar-item  @click="$router.push('/index/home2')"  icon="friends-o">订单</van-tabbar-item>
      <van-tabbar-item  @click="$router.push('/index/home3')"  icon="setting-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: 0,
    };
  },
};
</script>
